#ifndef HTTP_FACTORY_H_INCLUDED
#define HTTP_FACTORY_H_INCLUDED

#include "epollclientsocket.h"

class HttpSocket: public EpollClientSocket
{
public:
    HttpSocket(int fd): m_fd(fd)
    {}
    
    virtual void run();

private:
    int m_fd;
};

class HttpFactory: public EpollClientFactory
{
public:
    HttpFactory ()
    {}
    
    HttpSocket* createClientSocket(int fd)
    {
        return new HttpSocket(fd);
    }
};

#endif




